﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using ZhimeiSoft.CharmManager.DOL;
using ZhimeiSoft.CharmManager.Server.Factory;
using ZhimeiSoft.CharmManager.Server.BLL.Interface;
using ZhimeiSoft.CharmManager.Server.DAL.Interface;

namespace ZhimeiSoft.CharmManager.Server.BLL
{
    public class ScheduleBLL : IScheduleBLL
    {
        IScheduleDAL scheduleDAL;

        public ScheduleBLL()
        {
            scheduleDAL = BaseDalFactory.CreateScheuleDal();
        }

        #region IScheuleBLL 成员

        public void InsertSchedule(DBEntitySchedule scheduleInfo)
        {
            scheduleDAL.InsertSchedule(scheduleInfo);
        }

        public void DeleteSchedule(DBEntitySchedule scheduleInfo)
        {
            scheduleDAL.DeleteSchedule(scheduleInfo);
        }

        public void UpdateSchedule(DBEntitySchedule scheduleInfo)
        {
            scheduleDAL.UpdateSchedule(scheduleInfo);
        }

        public DataSet QueryScheduleState(string scheduleState)
        {
            return scheduleDAL.QueryScheduleState(scheduleState);
        }

        #endregion
    }
}
